package com.sanjiahantang.ythshopping.config;

import android.os.Environment;

import com.sanjiahantang.ythshopping.model.Area;
import com.sanjiahantang.ythshopping.model.AreaBean;
import com.sanjiahantang.ythshopping.model.UserInfor;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by sks on 2015/9/17.
 */
public class ConfigValue {
    // 请求服务器 成功code
    public static final String Success_Code = "1";
    // 请求服务器失败code
    public static final String Error_Code = "0";

    /**
     * 商品详情页修改购物车数量发送广播
     */
    public static final String ACTION_ALTER_CARTGOODS_NUMS = "com.jsyh.onlineshopping.activity.mainactivity";


    /**
     * 本地请求接口地址  PC
     */
//    public static final String APP_IP = "http://www.yuetianhe.com/shopapi/index.php/";
    public static final String APP_IP = "http://192.168.1.166/shopapi/index.php/";
    //app中图片获取的地址，和得到的数据拼接使用
//    public static final String IMG_IP = "http://www.yuetianhe.com/";
    public static final String IMG_IP = "http://192.168.1.166/";
    //首页html5的地址
    //public static final String MAIN_URL = "http://wx.mai022.com/shopapi/index.php/Goods_index/index";
    public static final String MAIN_URL = "http://www.yuetianhe.com/";
    public static final String DESCRIPTOR = "com.jsyh.onlineshopping";

    //腾讯appid
    public static final String QQAPP_ID = "1104912240";
    //腾讯appkey
    public static final String QQAPP_KEY = "dWfNU8NjY99GJ2y9";
    //微信appid
//    public static final String WXAPP_ID = "wx1aa1a833d7810a8f";wxb6b89ad7d9ebfbb0 wx22b7570a86671f96
    public static final String WXAPP_ID = "wx22b7570a86671f96";
    //微信appsecret ea9fe2139c93560cebecfa0ca85e6e69 118f05bc782e352fab3cc75add023fe2  ecd38a2ecd892e2ab8fe1c20784c07fc
    public static final String WXAPP_SECRET = "118f05bc782e352fab3cc75add023fe2";
    //用户个人资料
    public static UserInfor uInfor = null;

    //街道信息
//    public static List<AreaBean.City> arealist=new ArrayList<>();
    public static AreaBean.City currentCity = null;
    //纬度
    public static Double Latitude=0.00;
    //经度
    public static Double Longitude=0.00;

    //RID
    public static String rid;
    //请求数据用到的key
    public static String DATA_KEY = "";
    public static final String GoodsInfo = APP_IP + "goods/goodsInfo";

    /**
     * 热搜
     */
    public static final String HOT_SEARCH = APP_IP + "first/keywords";
    /**
     * 加入购物车
     */
    public static final String ADD_CART_SHOPPING = APP_IP + "goods/addcart";
    /**
     * 收藏商品
     */
    public static final String COLLECT_GOODS = APP_IP + "goods/collect";
    /**
     * 取消收藏商品
     */
    public static final String NOCOLLECT_GOODS = APP_IP + "goods/qcollect";

    //购物车列表
    public static final String CartGoodsList = APP_IP + "goods/cartlist";
    //修改商品数量
    public static final String AlterGoodsNumber = APP_IP + "goods/charnum";
    //购物车中删除商品
    public static final String DeleteCartGoods = APP_IP + "goods/delcart";
    //关注商品列表
    public static final String CollectGoodsList = APP_IP + "goods/collectlist";
    //初始化个人信息
    public static final String InitPersonalInfo = APP_IP + "goods/cartnum";
    /**
     * 分类
     */
    public static final String CATEGORY = APP_IP + "first/classify";
    /**
     * 预约
     */
    public static final String ReserveGoods = APP_IP + "order/reserve_goods";

    /**
     * 筛选 filter
     */
    public static final String CATEGORY_FILTER = APP_IP + "first/index";

    public static int iconFlag = 0;//用来改变购物车图片的标识，0：未选中，1：选中

    public static final String HEAD_PHOTO_DIR = Environment.getExternalStorageDirectory()
            .getPath() + File.separator + "onlineshopping" + File.separator + "avatar";

    public static final String TYPE_HOME_GOODS = "home_goods";
    public static final String TYPE_BRANDS = "brands";
    public static final String TYPE_NEW = "new";
    public static final String TYPE_BEST = "best";
    public static final String TYPE_HOT = "hot";

    public static boolean MANUALLY = false;
    public static boolean LOCATED = false;
    public static boolean LM_FIRST = true;

    public static int FLAG_HAVE_GOODS = 1;
    public static final int IMAGE_SCALE = 60;
}
